import service from '@/utils/request'

// @Tags DdmsSpecDrawingList
// @Summary 创建规格图- 图纸列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DdmsSpecDrawingList true "创建规格图- 图纸列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /ddmsSpecDrawingList/createDdmsSpecDrawingList [post]
export const createDdmsSpecDrawingList = (data) => {
  return service({
    url: '/ddmsSpecDrawingList/createDdmsSpecDrawingList',
    method: 'post',
    data
  })
}

// @Tags DdmsSpecDrawingList
// @Summary 删除规格图- 图纸列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DdmsSpecDrawingList true "删除规格图- 图纸列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /ddmsSpecDrawingList/deleteDdmsSpecDrawingList [delete]
export const deleteDdmsSpecDrawingList = (params) => {
  return service({
    url: '/ddmsSpecDrawingList/deleteDdmsSpecDrawingList',
    method: 'delete',
    params
  })
}

// @Tags DdmsSpecDrawingList
// @Summary 批量删除规格图- 图纸列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除规格图- 图纸列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /ddmsSpecDrawingList/deleteDdmsSpecDrawingList [delete]
export const deleteDdmsSpecDrawingListByIds = (params) => {
  return service({
    url: '/ddmsSpecDrawingList/deleteDdmsSpecDrawingListByIds',
    method: 'delete',
    params
  })
}

// @Tags DdmsSpecDrawingList
// @Summary 更新规格图- 图纸列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DdmsSpecDrawingList true "更新规格图- 图纸列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /ddmsSpecDrawingList/updateDdmsSpecDrawingList [put]
export const updateDdmsSpecDrawingList = (data) => {
  return service({
    url: '/ddmsSpecDrawingList/updateDdmsSpecDrawingList',
    method: 'put',
    data
  })
}

// @Tags DdmsSpecDrawingList
// @Summary 用id查询规格图- 图纸列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.DdmsSpecDrawingList true "用id查询规格图- 图纸列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /ddmsSpecDrawingList/findDdmsSpecDrawingList [get]
export const findDdmsSpecDrawingList = (params) => {
  return service({
    url: '/ddmsSpecDrawingList/findDdmsSpecDrawingList',
    method: 'get',
    params
  })
}

// @Tags DdmsSpecDrawingList
// @Summary 分页获取规格图- 图纸列表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取规格图- 图纸列表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /ddmsSpecDrawingList/getDdmsSpecDrawingListList [get]
export const getDdmsSpecDrawingListList = (params) => {
  return service({
    url: '/ddmsSpecDrawingList/getDdmsSpecDrawingListList',
    method: 'get',
    params
  })
}
